package com.sitech.ibnms.c3p.command;

import com.sitech.ibnms.c3p.command.shell.ShellCommand;
import com.sitech.ibnms.c3p.command.sql.SQLCommand;

/**
 * Created by liujhc on 7/7.
 */
public enum CommandType {
    SHELL(ShellCommand.class, "1"),
    SQL(SQLCommand.class, "2");

    private String scriptType;

    /**
     * 1为SHELL脚本， 2为SQL脚本
     *
     * @return
     */
    public String getScriptType() {
        return scriptType;
    }

    private Class<? extends Command> beanClass;

    CommandType(Class<? extends Command> beanClass, String scriptType) {
        this.beanClass = beanClass;
        this.scriptType = scriptType;
    }

    public Class<? extends Command> getBeanClass() {
        return beanClass;
    }
}
